package com.qianyue.decorator;

/**
 * TODO
 *
 * @author qian yue
 * @version v1.0.0
 * @since 2025/2/3 19:33
 */
public class Bacon extends Garnish {
    public Bacon(FastFood fastFood) {
        super(fastFood.getDescription() + "+培根", 2, fastFood);
    }

    @Override
    public int cost() {
        return getPrice() + getFastFood().cost();
    }
}
